﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="in_phieu.aspx.cs" Inherits="admin_in_phieu" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Image ID="Image1" runat="server" 
            ImageUrl="~/themes/blue/images/logo.png" />
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataKeyNames="id" DataSourceID="SqlDataSource1" 
            ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:BoundField DataField="ten_sp" HeaderText="Khuyến mãi" 
                    SortExpression="ten_sp" />
                <asp:BoundField DataField="ho_ten" HeaderText="Người mua" 
                    SortExpression="ho_ten" />
                <asp:BoundField DataField="gia_goc" HeaderText="Giá" 
                    SortExpression="gia_goc" />
                <asp:BoundField DataField="ho_ten_nguoi_nhan" HeaderText="Họ tên người nhận" 
                    SortExpression="ho_ten_nguoi_nhan" />
                <asp:BoundField DataField="so_cmnd_nguoi_nhan" HeaderText="Số cmnd" 
                    SortExpression="so_cmnd_nguoi_nhan" />
                <asp:BoundField DataField="so_dt_lien_lac" HeaderText="Điện thoại" 
                    SortExpression="so_dt_lien_lac" />
                <asp:BoundField DataField="ma_phieu" HeaderText="Mã phiếu" 
                    SortExpression="ma_phieu" />
                <asp:BoundField DataField="ngay_gio_in_phieu" HeaderText="Ngày giờ in" 
                    SortExpression="ngay_gio_in_phieu" />
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:babydealConnectionString %>" 
            SelectCommand="SELECT * FROM [mua_hang] mh, [thanh_vien] tv, [khuyen_mai] km WHERE (mh.id = @id) AND km.id = mh.id_khuyen_mai and tv.id = mh.id_thanh_vien">
            <SelectParameters>
                <asp:QueryStringParameter DefaultValue="0" Name="id" QueryStringField="id" 
                    Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    
        <br />
        Babydeal kính chúc quý khách hàng vui vẻ!</div>
    </form>
</body>
</html>
